#ifndef __GENERICEXCEPTION_H_INCLUDED__
#define __GENERICEXCEPTION_H_INCLUDED__
#include <typeinfo>
#include <iostream>

class GenericException:public std::exception{
private:

	std::string texto;

public:
	GenericException(const std::string &descripcion){
		texto = descripcion;
	}

	virtual const char* what(){
		return texto.c_str();
	}

	virtual ~GenericException() throw(){}
};

#endif // __GENERICEXCEPTION_H_INCLUDED__
